<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="compTitle" value="编辑流程文件信息" />
	<ui:param name="compToggleable" value="false" />
	
	<ui:define name="compContent">
		<p:tabView activeIndex="0" 
			effect="opacity" effectDuration="normal">
			
			<p:tab title="基本属性" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="bpmAddEditFile-base.xhtml" />
			</p:tab>
			<p:tab title="表单属性" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="bpmAddEditFile-form.xhtml" />
			</p:tab>
			<p:tab title="创建权限属性" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="bpmAddEditFile-createPrivilege.xhtml" />
			</p:tab>
			<p:tab title="查看权限属性" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="bpmAddEditFile-viewPrivilege.xhtml" />
			</p:tab>
			<p:tab title="管理权限属性" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="bpmAddEditFile-managePrivilege.xhtml" />
			</p:tab>
			<p:tab title="字段属性" style="margin: 0;padding: 0;border: 0;">
				<ui:include src="bpmAddEditFile-fields.xhtml" />
			</p:tab>
		</p:tabView>
	</ui:define>
	
	<ui:define name="compButtons">
		<ui:param name="parentViewBeanId" value="#{commonContentViewBean.parent.id}" />
		<p:commandButton title="保存" value="保存"
			onstart="return SinoPortal.Validation.validateForm('#{compId}_form');"
			actionListener="#{bpmAction.saveDefineAction}"
			update="#{parentViewBeanId}_left_form,#{parentViewBeanId}_right_form"
			oncomplete="#{compId}_dialog.hide();">
			<h:inputHidden value="#{compId}" />
		</p:commandButton>
		<p:commandButton title="关闭" value="关闭" type="button"
			onclick="#{compId}_dialog.hide();" />
	</ui:define>

</ui:composition>